﻿using BCCommon.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.Area
{
    /// <summary>
    /// 城市请求对象模型
    /// </summary>
    public class CityRequestDto
    {
        /// <summary>
        /// 城市编码
        /// </summary>
        [Display(Name ="城市编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string CityCode { get; set; }

        /// <summary>
        /// 省份编码
        /// </summary>
        [Display(Name = "省份编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 市名称
        /// </summary>
        [Display(Name = "市名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(30, ErrorMessage = "{0} 长度最大为30位")]
        public string CityName { get; set; }

        /// <summary>
        /// 城市热度
        /// </summary>
        [Display(Name = "城市热度")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int HeatLevel { get; set; }

        /// <summary>
        /// 排序索引
        /// </summary>
        [Display(Name = "排序索引")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int OrderIndex { get; set; }

        /// <summary>
        /// 自治区/直辖市
        /// </summary>
        [Display(Name = "自治区/直辖市")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool Municipality { get; set; }

        /// <summary>
        /// 省会城市
        /// </summary>
        [Display(Name = "省会城市")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool CapitalCity { get; set; }
        /// <summary>
        /// 城市易回货类型
        /// </summary>
        [Display(Name = "城市易回货类型")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public EasyBackGoodsType CityEasyBackGoods { get; set; }

        /// <summary>
        /// 热门城市
        /// </summary>
        [Display(Name = "热门城市")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool HotCity { get; set; }
        /// <summary>
        /// 整车议价
        /// </summary>
        [Display(Name = "整车议价")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool CityNegotiatedPrice { get; set; }
        /// <summary>
        /// 零担议价
        /// </summary>
        [Display(Name = "零担议价")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public bool CityNegotiatedPricePartLoad { get; set; }

    }
}
